/**
 * @program school-bus
 * @description: RedisConstants
 * @author: mf
 * @create: 2020/03/16 16:49
 */

package com.eye.catcher.constants;

/**
 * @author huzhiwei
 * @since 2022-02-08
 */
public enum RedisConstants {

    TOKEN_EXPIRE(3600*24, "token过期时间"), // 1 小时
    CREATE_INFO_EXPIRE(3600, "创建目录信息缓存数据","createCatalog "), // 1 小时
    USER_INFO_EXPIRE(3600*24, "用户信息过期时间", "getUserById "), //1小时
    RABBIT_INFO_EXPIRE(3600, "rabbit错误消息过期时间", "getRabbitByMessageId "), //1小时
    FILE_CODE_EXPIRE(3600*2, "通过目录id获取档号", "generateFileCode "),//2小时
    AUDITBORROWINFOPROCESS_FINISH_EXPIRE(10, "借阅审核最后的节点锁", "auditborrowinfoprocessFinish ");//10秒

    private Integer time;
    private String message;
    private String key;

    RedisConstants(Integer time, String message, String key) {
        this.time = time;
        this.message = message;
        this.key = key;
    }

    RedisConstants(Integer time, String message) {
        this.time = time;
        this.message = message;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
